#ifndef UTIL_H
#define UTIL_H
#include <vector>
#include <string>
using namespace std;

void ltrim(char *str);
void rtrim(char *str);
void trim(char *str);
int strpos(char *haystack, char *needle);
int readFile(char *filename,char *key,char *value);
int writeFile(char *filename,char * key ,char *value);
int writeSection(char *filename,char* section);
void fileToVector(const char *filename,vector<string> &vec);
void readAllFiles(char *pathName);

#endif // UTIL_H
